import requset from "@/utils/yzy/request";
const user = {
  getMenuApi: () => requset.post("/api/getCHCSAllPower"), //获取左侧菜单
  getUserPowerApi: (userid: any) =>
    requset.post("/api/getCHCSUserPower", { userid }), //查询用户拥有的权限
  getUserInfo: (id: any) => requset.post("/api/getDoctorById", { id }), //根据id查询角色信息
  getAllUserInfo: () => requset.post("/api/getAllRole"), //获取所有角色信息
  updatePasswordApi: (data: any) =>
    requset.post("/api/updatePasswordById", data), //修改密码
};
export default user;
